<template>
    <div class='detail'>{{id}}
        <button @click="getback">返回</button>
    </div>
</template>

<script>
export default {
    name: 'detail',
    data () {
        return {
            id: 0
        };
    },
    computed: {},
    mounted() {
        let query = this.$route.query;
        this.id = query.id
    },
    methods: {
        getback() {
            this.$router.go(-1)
        }
    }
}

</script>

<style lang='less' scoped>
.detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: auto;
}
</style>